package com.tjetc.dao;

import com.tjetc.domain.ParkAnimal;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface ParkAnimalMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ParkAnimal record);

    int insertSelective(ParkAnimal record);

    ParkAnimal selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ParkAnimal record);

    int updateByPrimaryKey(ParkAnimal record);

    @Update("update park_animal set park_id = #{parkId} where animal_id=#{animalId};")
    int update(ParkAnimal parkAnimal);

    ParkAnimal getByAnimalId(Integer animalId);
}